package org.kk.service;

import com.kk.entities.Payment;
import com.kk.model.result.GlobalResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * the type of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author 铁甲小宝
 * @date 2023-02-13
 */
@Service
@FeignClient(value = "nacos-service-provider", fallback = ConsumerFallbackService.class)
public interface ConsumerService8401 {
    @GetMapping(value = "/getPaymentById/{id}")
    GlobalResult<Payment> getPaymentById(@PathVariable("id") int id);
}
